image: rust:latest
+variables:
+ CARGO_TARGET_DIR: target
+
before_script:
- echo deb http://ftp.debian.org/debian stretch-backports main > /etc/apt/sources.list.d/backports.list
- apt-get update
libostree-sys:
stage: build
script:
- - cargo build --verbose --package libostree-sys
- - cargo test --verbose --package libostree-sys
+ - cargo build --verbose --manifest-path libostree-sys/Cargo.toml
+ - cargo test --verbose --manifest-path libostree-sys/Cargo.toml
libostree:
stage: build
script:
- - cargo build --verbose --package libostree
- - cargo test --verbose --package libostree
+ - cargo build --verbose
+ - cargo test --verbose
libostree-sys_nightly:
stage: build
image: rustlang/rust:nightly
script:
- - cargo build --verbose --package libostree-sys
- - cargo test --verbose --package libostree-sys
+ - cargo build --verbose --manifest-path libostree-sys/Cargo.toml
+ - cargo test --verbose --manifest-path libostree-sys/Cargo.toml
allow_failure: true
libostree_nightly:
stage: build
image: rustlang/rust:nightly
script:
- - cargo build --verbose --package libostree
- - cargo test --verbose --package libostree
+ - cargo build --verbose
+ - cargo test --verbose
allow_failure: true
# docs
stage: docs
script:
- make merge-lgpl-docs
- - cd libostree
- cargo doc --verbose --features dox
artifacts:
paths:
stage: publish
script:
- make pre-package
- - cargo publish --verbose --manifest-path libostree-sys/Cargo.toml --allow-dirty --token $CRATES_IO_TOKEN
+ - cargo publish --verbose --manifest-path libostree-sys/Cargo.toml --token $CRATES_IO_TOKEN
when: manual
publish_libostree:
stage: publish
script:
- make pre-package
- - cargo publish --verbose --manifest-path libostree/Cargo.toml --allow-dirty --token $CRATES_IO_TOKEN
+ - cargo publish --verbose --token $CRATES_IO_TOKEN
when: manual